package com.wing.productionPlan.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.enterprise.product.model.entity.ProductDetail;
import com.wing.productionPlan.model.entity.ProductionProcess;
import com.wing.productionPlan.model.request.DeviceTypeForm;
import com.wing.productionPlan.model.request.ProductionProcessForm;
import com.wing.productionPlan.model.response.DeviceOrWorkVo;
import com.wing.productionPlan.model.response.ProductionProcessVO;
import com.wing.productionPlan.model.response.ResBenchmarkBookEchnologyVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * 生产工序表-Service
 *
 * @author
 */
public interface ProductionProcessService extends IService<ProductionProcess> {

    /**
     * 添加
     *
     * @param productionProcessForm
     * @return
     */
    int add(ProductionProcessForm productionProcessForm);

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<ProductionProcessVO> list4app(Map<String, Object> params);

    /**
     * 分页list-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    Page<ProductionProcessVO> pageList4app(Page page, Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    ProductionProcessVO get4appById(Long id);

    /**
     * 获取
     * @param collected
     * @return
     */
    List<ProductDetail> getSkuInfoBy(Set<String> collected,Page<ProductDetail> page, Map<String,Object> paramMap);

    /**
     * 获取设备类型列表
     * @param idArray
     * @return
     */
    List<DeviceTypeForm> getDevicetTypeList(List<String> idArray);


    List<DeviceOrWorkVo> fessionlist(List<String> list);

    /**
     * 查询设备列表
     * @return
     */
    List<DeviceOrWorkVo> devicelist(List<String> list);

    /**
     * 获取工艺工序内容
     * @param bookId
     * @param processName
     * @return
     */
    ResBenchmarkBookEchnologyVo getBenEchnologyBy(Long bookId, String processName);

    /**
     * 获取基准书工序列表
     * @param bookId
     * @return
     */
    List<ResBenchmarkBookEchnologyVo> getBenEchnologyListBy(Long bookId);
}
